package com.itheima.dao.Impl;

import com.itheima.dao.UserDao;
import com.itheima.domian.User;

import java.util.List;
import java.util.Map;
import java.util.Properties;

public class UserDaoImpl implements UserDao {
//    public UserDaoImpl(){
//        System.out.println("userDaoImpl被创建");
//    }
//
//    public void init(){
//        System.out.println("初始化方法....");
//    }
//
//    public void destory(){
//        System.out.println("销毁方法....");
//    }
    private String name;
    private int age;

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public void setMap(Map<String, User> map) {
        this.map = map;
    }

    public void setProp(Properties prop) {
        this.prop = prop;
    }

    private List<String> list;
    private Map<String, User> map;
    private Properties prop;
    public void save() {
//        System.out.println(name+"---"+age);
        System.out.println(list);
        System.out.println(map);
        System.out.println(prop);
        System.out.println("save running......");
    }
}
